/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.sunriseset;

import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 *
 * @author bsmith
 */
public class SRSDate {

    String day;
    String month;
    String timezone;
    String dst;

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getDst() {
        return dst;
    }

    public void setDst(String dst) {
        this.dst = dst;
    }

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getTimezone() {
        return timezone;
    }

    public void setTimezone(String timezone) {
        this.timezone = timezone;
    }
    
        @Override
    public String toString() {
        return "Date ["
                + (day != null ? "day=" + day + ", " : "")
                + (month != null ? "month=" + month + ", " : "")
                + (timezone != null ? "timezone=" + timezone + ", " : "")
                + (dst != null ? "dst=" + dst : "") + "]";
    }

}
